package com.Fruit;

/**
 * ClassName: FruitTest
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/9/4 17:14
 * @Version 17.0.2
 */
public class FruitTest {
    public static void main(String[] args) {
        Fruit a1 = new Apple();
        a1.name();
        ((Apple) a1).area();
        ((Apple) a1).price();

        System.out.println("----------------");

        Pitaya a2 = new Pitaya();
        a2.name();
        a2.area();
        a2.price();

        System.out.println("----------------");

        Grape a3 = new Grape();
        a3.name();
        a3.area();
        a3.price();


    }

}
